<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>date.html</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script type="text/javascript" src="date-util.js"></script>
	<script type="text/javascript">
		window.onload=function(){
			var date  = new Date();
			var str = DateUtil.dateToStr("yyyy-MM-dd HH:mm:ss W",date);
			//alert(str);
			
			var data_1 = DateUtil.dateAdd("h",1,date);
			var str = DateUtil.dateToStr("yyyy-MM-dd HH:mm:ss 周W",data_1);
			//alert(str);
			
			var str = DateUtil.dateDiff("d",new Date(),DateUtil.strToDate('2013-05-01'));
			alert(str);
			
			
		}
	</script>

  </head>
  
  <body>
    This is my HTML page. <br>
  </body>
</html>
